package com.fnzn.entranceGuard.entity;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

/**
 * <p>
 * 初始二维码管理
 * </p>
 *
 * @author JokerGao
 * @since 2018-06-29
 */
@TableName("initial_qr_manage")
public class InitialQrManage extends Model<InitialQrManage> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id",type = IdType.UUID)
    private String id;
    /**
     * 二维码权限类型(0,1,2)
     */
    private String type;
    /**
     * 图片路径
     */
    @TableField("img_path")
    private String imgPath;
    /**
     * 小区ID
     */
    @TableField("community_id")
    private String communityId;
    /**
     * 小区名称（非数据库字段）
     */
    @TableField(exist = false)
    private String communityName;
    /**
     * 楼宇ID
     */
    @TableField("building_id")
    private String buildingId;
    /**
     * 楼宇名称（非数据库字段）
     */
    @TableField(exist = false)
    private String buildingName;
    /**
     * 单元ID
     */
    @TableField("unit_id")
    private String unitId;
    /**
     * 单元名称（非数据库字段）
     */
    @TableField(exist = false)
    private String unitName;
    /**
     * 添加人
     */
    @TableField("create_user")
    private String createUser;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;
    /**
     * 更新人
     */
    @TableField("update_user")
    private String updateUser;
    /**
     * 更新时间
     */
    @TableField("update_time")
    private Date updateTime;
    /**
     * 删除标志(正常：0，已删除：1)
     */
    @TableField("del_flag")
    private String delFlag;
    /**
     * 预留字段1
     */
    private String var1;
    /**
     * 预留字段2
     */
    private String var2;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getImgPath() {
        return imgPath;
    }

    public void setImgPath(String imgPath) {
        this.imgPath = imgPath;
    }

    public String getCommunityId() {
        return communityId;
    }

    public void setCommunityId(String communityId) {
        this.communityId = communityId;
    }

    public String getBuildingId() {
        return buildingId;
    }

    public void setBuildingId(String buildingId) {
        this.buildingId = buildingId;
    }

    public String getUnitId() {
        return unitId;
    }

    public void setUnitId(String unitId) {
        this.unitId = unitId;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getVar1() {
        return var1;
    }

    public void setVar1(String var1) {
        this.var1 = var1;
    }

    public String getVar2() {
        return var2;
    }

    public void setVar2(String var2) {
        this.var2 = var2;
    }

    public String getCommunityName() {
        return communityName;
    }

    public void setCommunityName(String communityName) {
        this.communityName = communityName;
    }

    public String getBuildingName() {
        return buildingName;
    }

    public void setBuildingName(String buildingName) {
        this.buildingName = buildingName;
    }

    public String getUnitName() {
        return unitName;
    }

    public void setUnitName(String unitName) {
        this.unitName = unitName;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "InitialQrManage{" +
        ", id=" + id +
        ", type=" + type +
        ", imgPath=" + imgPath +
        ", communityId=" + communityId +
        ", buildingId=" + buildingId +
        ", unitId=" + unitId +
        ", createUser=" + createUser +
        ", createTime=" + createTime +
        ", updateUser=" + updateUser +
        ", updateTime=" + updateTime +
        ", delFlag=" + delFlag +
        ", var1=" + var1 +
        ", var2=" + var2 +
        "}";
    }
}
